stable version of algo