added comments to segment