rewired the update method for metadata