added some comments in client