proses deteksi yang fleksibel