added new task variable task2, also returned task2 instead of task1