match anchor and rm relevant