added rationalise_dot