added some if(DEBUG) statements