rewriting find