clear beginning, middle, and end