optimize references