regularize tagging