replace req variable by request