added h function not working fully, resolved all other issues, had to do with the maximum number of bids per bin