proper definition for the 'client' method