removed debugging console.logs