corrected a syntax error, removed some console.log