finally got the butterfly hash to work
cleaning up code