saving before branch