added Sword.max