add function upgrade military