delete codes which are not needed