orthonormalization done + tim's chagnes