sort the tools print
move unused code