added extract metadata