delete unused handler in the end fo file