updating method to transfer percent to integer