Correct grammar problems in the following paragraph
At first I thought it shrunk, but thought back a secound, I wondered if I gained weight.
At first, I thought it had shrunk, but when I thought back a second, I wondered if I had gained weight.