implement level-processing to rule_gamma