save all gen pi/K from B