switch tags to object