add better branch compare