Possible duplicate. merging.

@OP: please edit your post to make it readable. Put
at the start of a section of code and at the end: that wy the code will be formatted. You may have to check...