find out the way to update, need to figure out how to replicate 3000 times
to do:
1. endpoint of S & C
2. not right figure, only need the last matrix of replicate, and try again
get the last matrix produced by replicate
fix bug