rounds distance to 0.01, removed unnecessary code