fixed wrong function def in client