apply improved flow syntax