modified addtask ok