removed redundant methods
Deal with rounding errors