rewrite intersects