increased size of matrices  back to 1000 x 1000