Remove unwanted codes