changed order of output