pass correct variable for config to run function