changed beta and gamma