removed sort functions