added distance functionality to asdiposition