counting delay only once