try to preserve other matrix variables