extracts matrix generation out of f4rt