removed debug prints and modified the order of task and to-do's