added branch method