(BY: veer) adding comments to detail function