added function to translate sigma <-> bet, added test