modify the middle table