clear referenc copy problem