betha conversion functions