fixing initialization problem