removing gratuitous sort