Mansukhdeep Thind wrote: . . . Looks better doesn't it?
Not a lot better. Not even when I added code tags to the original post.
That code had not been correctly indented; there is too much writing crammed into too small a space. Please spread it out, Jim Anderson, so we can actually read it.