error in calculations included fractions with denominator <> 1
corrected!