add additional comments inside each function