change in orientation does not cause interrupt
fixed getXYZ()