function ir stubs