extraneous vars? firstTick and lastTick not used?