add complete task method