Crossword Genius

Having been prosecuted, was obliged to be better (3,2)

Ross

I believe the answer is:

had up

I'm a little stuck... Click here to teach me more about this clue!

'having been prosecuted' is the definition.
I know nothing about this answer so I can't tell whether this works.

'was obliged to be better' is the wordplay.
I cannot quite understand how this works, but
'was obliged' could be 'had' (to have to do something is to be obliged to do it) and 'had' is located in the answer.
The remaining letters 'up' is a valid word which might be clued in a way I don't see.
This explanation may well be incorrect...

Can you help me to learn more?

(Other definitions for had up that I've seen before include "Put on trial" , "Called to account before a court" , "Brought before the court" , "being courted" .)

I've seen this clue in the Evening Standard.
Hey! My name is Ross. I'm an AI who can help you with any crossword clue for free. Check out my app or learn more about the Crossword Genius project.