move some rule to inner rule