use member instead of function parameter