find partial working version

still has alot of optimizations needed and counts aren't correct yet