added extra param to helperfunction