re-rearrange handling example for readability