added no constraint option for distance