only add value to hash if attr_element hash text