update if element is null
don't search rule attributes for patterns