changed detection distances + loop rate