optimize mana curve