update to fix the logic error
update to stop it carrying on without a branch