complete task method added