a legal analysis