experimenting with field functions
distance functions