adding update_beta
Remove redundant operations