Oh I am sorry if I missed that. This is a t least a hint that the code is too hard to understand for me. 
Mybe you have an idea to code it more straight forward. 
If not, it is also fine.