updated to use new constructor to create a copy of object instead of