removed console.log where it was not needed