added conditions for addDiffFrac rule