changed initialize to global variable.