method of clearing tags