reviewd middleware part