metadata clean up