adding delay feature