Both ways I corrected it now sound better, however they are considered bad grammar because it is improper to end sentences with prepositions. But a native speaker would have no problem understanding. In fact, it sounds funny to move the sentence structure around to avoid it.
@Allison0941 Ending sentences with prepositions is no longer considered bad grammar, that idea having been the awful result of an outdated model in the field of linguistics called grammatical prescriptivism, a model now fully rejected in linguistics, and specifically in language pedagogy. Feel free to end sentences with prepositions to your heart's content, it was never wrong, and it was wrong for them to teach you that it was. :)