complete initialization and output