completed branch CRUD logic