he held the rank of major of militia