corrected orthonormalizing