change learning.sh to fit multi-process