fixing the delay as an integer value