passed complete task by id method