added delay pre-processing