add slot of failure time
implementing gradient of U