updating matrix evolution'