removed middleware