removed some diagnostic printing code