rearranged output of ai