fixes problems with generate, no assistance needed