added new methods to lcsGen