check type of data and metadata