updating generation