using replaceWith instead of wrap