in accordance with legal provisions