cleaning metadata