update brain's heartbeat