remove node and add proper revision