updated task method