removed console.log debugging calls