little change in code. move pss_fo_set generation to head