changed client argument
functools