add note statistical function