removed console.log that returned undefined