implemented shocktime detection