added delay for replication also