almost done writing the replcicateLogEntries