optimize the install progress