finishing up data output