organization structure records array flatten