need to loop over tasks and statuses seperately to filter properly