fix list out of range and add a run.sh to run