clonning data to avoid mixing results
fixed vector subtraction collateral effect