added support for delete the tag first and re-insert again