modified mocha adding type equal