ticket:3 middleware works