determine format before get its data