removing console.log messages where unnecessary