move rounding weight to frontend