adding spike detection methods