rewrite OR statement