relay: reformat code