build matrix and comments