added choose_orientations2