add get_all_sizes and add test