copying over struct members