clean some codes