added console.log for checking