Re-arranging output