saving befor switching branch