cleaning up metadata