update routineGenerator