fixed problem with defmemo by first assigning it to idfn