legal and constitutional basis