have removed all of the getValues Statements

reworked the code with a new function that removes a bunch of repeated
lines that are slowing the code down and no longer necessary