change: add support for large matrix