add distance stuff