wip dial algorith