change to random matrix