removed console.logs used for debugging