moved rate boosting func out