changes to client.c