almost working replication