11: count fields correctly by ACTUALLY COUNTING! Derp.
11: reset labels at start of each function
minor cleanup