updated 2nd matrix