get object by id