expanded to write a value for matched and hide.