define `a` before line 9 where it should be used