metadata cleaning