updated getmyobj method