cleanup metadata