dirty/cheap way of getting rid of duplication error caused by returnedObject