modified survival data preparation