added checkPercentage