fixing the delay