included function to write output across sites