detection rate based on distance