removed stdout calls used for debugging