fixed unwanted console.logs