original code got a bit coo complex. Awesome for presistant projects  living years... bad for current task