fix fn prototype