changes with Shin and Carl to add priority to cofactor sets