distance counter working
distance couner fix