sorting and saving better