added learn_record