update attention