Level -> int32

to handle concurrency issues
use atomic operation to handle level