batchin format fix and delete node logic