port repmin example to a PAG