change metadata update method to fix broken syntax