I was wide awake again at 4am unsure what to do – then I had a brainwave