remove needless types and function.