rules to separate by index