remove redundant function in mdarray