add new method to calculate percentage