refactored where
flatten jobs
group