removed console.log debugging lines