implemented E mana check