working distance function stable program