added beta echantment functionality