eliminated the need to specifically rid tabs and newspaces by iterating the process list with a for loop