to record learning step