small change in call signature of helper function