improved the liesin method