Rewriting candidate selection