fixed rounding issue a bit better