modify generate swift rings