Changing getObjects2 to getObjects