removed debug.writeline