added input parameters rta, gamma1 and gamma2