refacture usage of type(where we keep the object type) to obj_type because contacts and items also have a type property