changed all notice statements to "debug" statements