529 withdrawals for adult children in grad school

I have two adult children both in grad school.  One lives on his own and one still lives at home.  Both are over 24 and neither are dependents.   I withdrew from 529 (to me, the owner, because it was way faster) and then transferred $ to older son so he could pay his tuition bill.  Then I withdrew (to me again) and I paid tuition for younger child.  

 

Withdrawals match their tuition expenses.  1099Q is in my name (combined total for the 2 kids) and 1098Ts went to them.  So am I correct I claim the tax free withdrawal for qualified expenses on my return, and they claim tuition expenses on their own tax returns?