fixed global var problem