use replaceWith method to avoid double classes