Resturcturing bloom code