before Sorting