added function _calculateMagicCallNames