data generation model matrix fix