add linear-model case