removed beta increment function