improve generalizer