Fixing replace

Deleting leftover prune stuff and fixed #80