termination code added