fix up grocery logic