adding rconstraint as a function of eta