adding functional task termination