removing excessive conversions to IFunction[Float]