more working on sorting