reset to 0 for merge