updates matrix dependencies