adding changes before authorization