delete unwanted codes.