added index to rules, needed for parsetable