start of build_matrix.py