removed Debug code