correct vector and null implementation