heartbeat working