showing a middleware and proving what it is doing