fixed primal calcs