using remove! instead of replace-contents!