second commit of reg pred and test script