get rid of uninitialized pointer warning