time for middleware