bracket in new line also here, and in the 'else' below, and another 'for' inside publish(). Sorry to be so picky, but it's important we keep the style for readability