Update segregate 0s and 1s