set up for termination