change loopnum to 20 from lab