note: renamed confusingly named variable