removed use of undefined method in branch