attempt to rewrite detector