clean some function