C CLIENT CODE ADDED