bpm detection added