modify orthogonality check