removed console.log statement
added logging