added branches cond