changed percentagemethod