check and modify some type