deleted xos algrithm