This change really seems to provide more clarity to what you're trying to say. in the first sentence, there is a lot of "y"s that can cause the reader (like myself) to slow down and have to re-read carefully to capture the rhythm of the sentence. I think your adjustments certainly helped with the sentence flow