rename method and type class