removed lag, matrix built from table