replaced .slice().push(i) with .concat(i)