fixed sizeArr and remove some console.log