works when only results are exported