add debug statement to show progression of sorting