removed console.log used for debugging