added generation flag