stacksort debug lines removed