Helper fn declared to late in the game