return function for runtime functions