modified script for grocery-store project