adding heartbeat