put data in the correct bucket