updated LS solver
updated LS solver