remove diagnostic code