edited detection.tex