adding functionality to get_objects