| Accumulated other comprehensive income (loss) |
Accumulated other comprehensive income (loss) The changes in AOCI for the nine months ended March 26, 2021 and March 27, 2020 were as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (amount in thousands) | Unrealized net (Losses)/Gains on Available-for-sale Securities | | Unrealized net (Losses)/Gains on Derivative Instruments | | Retirement benefit plan - Prior service cost | | Foreign Currency Translation Adjustment | | Total | Balance as of June 26, 2020 | $ | 1,490 | | | $ | 602 | | | $ | (2,009) | | | $ | (1,230) | | | $ | (1,147) | | | Other comprehensive income before reclassification adjustment | (1,116) | | | (4,093) | | | — | | | 547 | | | (4,662) | | Amounts reclassified out of AOCI to the unaudited condensed consolidated statements of operations and comprehensive income | 179 | | | (1,730) | | | 421 | | | — | | | (1,130) | | | Tax effects | — | | | — | | | — | | | — | | | — | | | Other comprehensive income (loss) | $ | (937) | | | $ | (5,823) | | | $ | 421 | | | $ | 547 | | | $ | (5,792) | | Balance as of March 26, 2021 | $ | 553 | | | $ | (5,221) | | | $ | (1,588) | | | $ | (683) | | | $ | (6,939) | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (amount in thousands) | Unrealized net (Losses)/Gains on Available-for-sale Securities | | Unrealized net (Losses)/Gains on Derivative Instruments | | Retirement benefit plan - Prior service cost | | Foreign Currency Translation Adjustment | | Total | | Balance as of June 28, 2019 | $ | 952 | | | $ | 32 | | | $ | (2,537) | | | $ | (833) | | | $ | (2,386) | | | Other comprehensive income before reclassification adjustment | (1,310) | | | (7,565) | | | 478 | | | (353) | | | (8,750) | | Amounts reclassified out of AOCI to the unaudited condensed consolidated statements of operations and comprehensive income | (93) | | | 846 | | | — | | | — | | | 753 | | | Tax effects | — | | | — | | | — | | | — | | | — | | | Other comprehensive income (loss) | $ | (1,403) | | | $ | (6,719) | | | $ | 478 | | | $ | (353) | | | $ | (7,997) | | Balance as of March 27, 2020 | $ | (451) | | | $ | (6,687) | | | $ | (2,059) | | | $ | (1,186) | | | $ | (10,383) | |
|