added delay circuit