update generation routine modification