deep copy for sidref