wip dial algorithm