update for LS Alg