renamed a variable
reduced main loop's workload