removed console.log()s for debugging