modify pg_num and pgp_num