conferted all debug messages to debug statements