updated plots and tmpred.R