correcting some problems in replication and remapping ALMOST