heartbeat and timing