implemented bloom method