api functions
make sure the distance checks for minimal range