referance optimize