add result typedef.