rename target type to tag type