add heart rate function,but have some problem!