@Vale1,
Could you try to format your code a lite better using the tools on this site. It will make it easier to read and also copy.