copy attributes