add alliance
refactor