added validation for dataset format