style fix and strict global variable declare