added deadtime calculation