updated example based on the server change where metadata that is defined is required