use correct types for copied object properties