tasks by iteration and state