rm ir code, use branch instead