removed console.log that was used for debug