Retirement tax questions

I used code G, per the 1099, and it's taxing it at the state level. The message I received within TurboTax said I needed to adjust the basis.