updated getType functions