added the mod exponentiation problems