arrange output