created macro and testes that i did it right. got to cleanup rest of code to fit the macro. it still does not work, but now it will be much easier to make further tests.