created sub rules
extended parser to subloop on rule types, might rework