simplified the termination procedure