now uses an array of baskets