implemented obj_get method