set the right pointer

setright(ptr,null);