updates percentage