dynamodb vars were not being properly referenced.