fixed middleware example comments