using _distance instead of distance