updated lsys code with last nights work.