fix double add in trial variables