fixed lstd returning tuple instead of array, removed value fn debufg code