add middleware t#3