serialize return size