return metadata to set view