wrapped function in class