sorting out poly rings and holes