@ankit-maverick You need to check, whether accessing pos0, pos1 becomes yellow again in cython -a output when accessing the global variables (not sure about that now). If yes, you need to keep the local variables.