distance select works