updating selection generation