functionalize metadata