writing experiment output