renamed 'process_percent' variable to 'percent'