search replace middle ware -> middleware