make rendermetadata a struct