trying to understand what the maxDistance is -WIP