update global rotation computation. #2