added a helper to round to whole numbers