added clone method as an attribute record is now stored in a unique_ptr and thus can not be shared