removed unneeded middleware