fixed the fillmetadata function