change in toRational to comply toString