removed getType method