added termination back