removed console.log debug printouts