hard coded shitty version of distance working