changing order of outputs slightly