Removed the unnecessary parameter and logging in console.