added update metadata feature