removed unused sorting