changed output to debug output