removed printf debug code