updated load beta function