clean some code.