some more typos and removing console.logs