using .slice() to pass array value, not reference :D