much better optimization. changed order of independent instructions. nearly 60% decrease in runtime!!