using copy of the axis parameter vector to guarantee inmutability