better bpm calculation