made sorting faster