added connection to record stat