correcting object reference