basic ecc math added