ensured we got the right output format