rename getData
Update getData function
Rename: getData -> getMetadata