declare gobal variable outside before