Changed weighted matrix size