remove metadata from main