added object type name checking