added kaplan.plot