fix glms as well