rename remove_entities to replace_entities (#18)