minor refactor of LS code