fix pmodel function name