use function approximator library