deleting spikes in positions