updating metadata block