update percentage calculation