comment publish flow and fix missing closing parenthesis