compliance with legal formalities