redefine ffenc as a function (#235).