generate super matrix