clean out old algorithm