removed unused code. debug output is now done elsewhere