fixed a small error (used 'n' instead of 'N') and removed some diagnostic code