move metadata to the class