removed some print statements used for debug