first run of matrix generation