clean up metadata