add create branch function