clean some types