your code is always executed in one thread