I took a deduction from a 529 plant to pay for tuition and fees for my son. and it seems the deduction was taxed, any suggestion ?

the deduction was lower than all expenses if I add books and computer ...