modification to use more pmods