put everything in order