made sorting better