changed the make_ortho_arr function