removed some diagnostic code