setting membername variable of undefined