corrected CustomeMiddleware example