implemented spartan mode