added genericLBFS