['I ate half a sandwich before realizing the bread was old and moldy! It was gross!']
Oh no, I can imagine how you must have felt when you realized.  Did you get sick?
I ate half a sandwhich before realizing the bread was moldy.