basic bpm and points algorithem