change maxNumPic for test