implemented mcmf with pq and sss