matching of stops when added from right to left