remove unused newHeartbeat function