almost finish phase2 task1 and task2