corrected shopping code