simplify the metadata part