added console.log lines