begin to deal with tag