method definitions in client