update 0 or 1