added unstable algorithm