forgot to set generate before init