edit type to tag