miles variable works