returns info and added console.log