distance added to hidden form fields