Needed for CAPS performance
Needed for CAPS performance
had to unroll the inner loop to make everything work and perform well
a better way to get performance