added custom distance controls