further polishing of verifyTablePattern