find the non interactive function