client.c modified