Retirement tax questions

Fun fact: you only get Massachusetts tax basis if you paid MA tax so you have to know how much of the IRA contributions were previous taxed in MA.  Ugh.. If none of the IRA or some other retirement contributions were ever taxed by MAss than MA is going to tax the distribution.