issue #2 removing debug prints