implement completing of tasks