added typecheck for empty boday in CuStat