removed printf debug lines