beta functions