changing order of imput