modify local variable to global variable to define charactor array