changed map to replace

at the suggestion of https://twitter.com/@pirfalt