better retreival of heartbeat data