integreting commenting function (to be continued)