udpated input/output format