to write function fnpe file over