split data and metadata