get rid of getType()