testing with 3js r67
cleaned up logic for copying vectors by using clone()