corrected error in function simsurv from last push