removed debug writeln