Improve grammaticallity of the following paragraph
She couldn't stop smiling because she had just noticed that she wouldn't be alone anymore
She couldn't stop smiling because she had just realized that she wouldn't be alone anymore.