first replication script