change: avoid using large matrix. IMPORTANT!