heartbeat: taking into account at on/off conversion