added console.log line for debug