improve lottype