pre branch check