added local variables for lookup string and default if lookup value doesn't exist