Made some changes to make_ortho