f0 function successfully run