fixed generate -- not run yet