adjust type of class