fixed rounding issues