removed debug printfs and fixed 0 walk_dist issue