change to debug.writeline