removed arguments from middleware