code relayout