remove unnecessary branch