code does the same translation for heartrate now