modified delay to f