added input/output format