further revs to yin-yang
more formatting work in yin-yang
loop variant of  working, but need to condense it