remove sorting assumption