slowly compartmentalizing the code base into the bubblehash function