remove unneeded branch