fixing a bug, removing console.log