added heartbeat