finished assigning bucket numbers