changed objectType to TypeID