kind of works for the ER demo. Had to revert to the slow way of generating PG rvs