cleaning of the setWW function