reformat RestrictionParser