add learned function