added stable version and fixed lag bug (which possibly caused prediction erro
        persistency bug)