fix bug
added an additional configurable variable
no-op: tweaked indentation