fixing minor typo and removing console.log