And without making your variables 'C' and 'a' local you can run in situations that are not predictable.
Especially when you have one of the following (luckily mostly outdated) addons
C:
https://www.townlong-yak.com/globe/wut/#q:C
a:
https://www.townlong-yak.com/globe/wut/#q:a