add error throwing in case of missing of one of the two Input/Output Formats