correctly empty cart