update completed algorithm