added console log for true