updated spiketimes2f with new algo