clean up some type settings