moved eye[3] in global scope