rewrited for fractions