removed a print statement, and fixed JSON output