working on phase2
working on phase2 distance_field