revising code on LBM models -KL