clear buffer before adding new points