fixed the output layout