main data output finished