removed method setType()