re-arranging logs