add fix_b parameter to allow b to be fixed