i didn't sve the hand so i'm gonna write by memory.

full ring game
Hero is on the button Ac 2D

UTG
calls .25
UTG +1, +2 fold
UTG + 3 call .25
everyone before me folds
Hero raises 1.25
UTG calls
UTG + 3 calls
Flop
As 2h 9d
UTG bets 2$
UTG + 3 raises to 8$ total
Hero raises all in 24.55

UTG folds, UTG + 3 calls




Result
UTG + 3
2 pair Aces and 9
Hero 2 pair
Aces and 2

I feel like I should have played differently post flop but I'm not sure. Can you guys help me?