thiese are local variables.
make alto also thread safe