add modified code to use the split-out PRIMA