adding some comments in the code