matrix version 2 updated