changed tuple check