remove unwanted codes.