resolving distance issues