Modes and Subs arrays described in fig.3