using rounding to solve shrinking problem instead of previous approch