now copying values instead of referencing