removed debugging console.log calls