Switch replace with put in discard